﻿<%@ Page Title="" Language="C#" MasterPageFile="~/controlasistencia/Plantilla.Master" AutoEventWireup="true" CodeBehind="reporteTiempo.aspx.cs" Inherits="Presentacion.controlasistencia.reporteTiempo" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="js/validaciones.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contenido" runat="server">
    <form runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
        <div class="row">
            <div class="col-lg-12">
                <div class="page-title">
                    <h2>Reportes de tiempo
                        <small>
                            <asp:Label ID="lblCarrera" runat="server" Text=""></asp:Label></small>
                    </h2>
                    <ol class="breadcrumb">
                        <li><i class="fa"></i><a href="index.aspx" class="tamano-breadcrumbs">Inicio</a>
                        </li>
                        <li class="active tamano-breadcrumbs">Reportes de tiempo de uso del sistema</li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="row">
            <div class="portlet portlet-green">
                <div class="portlet-heading">   
                    <div class="portlet-title">   
                        <h4>    
                            Reporte
                        </h4>
                    </div>
                    <div class="clearfix">   
                    </div>
                </div>   
                <div class="portlet-body">   
                    <div class="row">
                        <div class="col-lg-6">
                            <asp:DropDownList ID="ddlPeriodo" runat="server" CssClass="form-control"></asp:DropDownList>
                        </div>
                        <div class="col-lg-4">
                            <asp:DropDownList ID="ddlCarreras" runat="server" CssClass="form-control"></asp:DropDownList>
                        </div>
                        <div class="col-lg-2">
                            <asp:Button ID="Button1" runat="server" Text="Generar Reporte" CssClass="btn btn-block btn-blue" OnClick="Button1_Click" />
                        </div>
                        
                    </div>
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="col-lg-2">

                            </div>   
                            <div class="table table-responsive">
                                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%" AsyncRendering="False" CssClass="table-responsive" Visible="False" SizeToReportContent="true">
                                    <LocalReport ReportEmbeddedResource="Presentacion.controlasistencia.reports.reporteTiempoCarrera.rdlc">
                                        <DataSources>
                                            <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="dtsTiempo" />
                                        </DataSources>
                                    </LocalReport>
                                    
                                </rsweb:ReportViewer>
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="obtenerTiempoXCarrera" TypeName="Negocio.catalogos.catalogoTiempo, Negocio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
                                    <SelectParameters>
                                        <asp:Parameter DefaultValue="" Name="_idCarrera" Type="Int32"></asp:Parameter>
                                        <asp:Parameter DefaultValue="" Name="_idPeriodo" Type="Int32"></asp:Parameter>
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </div>
                        </div>   
                    </div>
                </div>
            </div>   
        </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
